package shajie.shajun.mmhf.Adapter.ViewHolder;

import android.databinding.ViewDataBinding;

import shajie.shajun.mmhf.Base.BaseRecyclerHolder;
import shajie.shajun.mmhf.Bean2.SearchOrder;
import shajie.shajun.mmhf.databinding.ItemSearchOrderBinding;

/**
 * Created by admin on 2017/11/27.
 */

public class OrderAdapterHolder extends BaseRecyclerHolder {
    private ItemSearchOrderBinding mBinding;
    public OrderAdapterHolder(ViewDataBinding binding) {
        super(binding);
        this.mBinding = (ItemSearchOrderBinding)binding;
    }
    @Override
    public void init(Object c, int position) {
        SearchOrder item=(SearchOrder)c;
        mBinding.setOrder(item);
        mBinding.setNum(position + 1);
        mBinding.executePendingBindings();
    }
}
